package com.ruoyi.system.order.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单配送路线表
 * @TableName order_delivery_route
 */
@TableName(value ="order_delivery_route")
public class OrderDeliveryRoute implements Serializable {
    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 订单ID
     */
    private Long orderId;

    /**
     * 商家经度
     */
    private BigDecimal merchantLng;

    /**
     * 商家纬度
     */
    private BigDecimal merchantLat;

    /**
     * 骑手经度
     */
    private BigDecimal riderLng;

    /**
     * 骑手纬度
     */
    private BigDecimal riderLat;

    /**
     * 买家经度
     */
    private BigDecimal buyerLng;

    /**
     * 买家纬度
     */
    private BigDecimal buyerLat;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    public Long getId() {
        return id;
    }

    /**
     * 主键ID
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 订单ID
     */
    public Long getOrderId() {
        return orderId;
    }

    /**
     * 订单ID
     */
    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    /**
     * 商家经度
     */
    public BigDecimal getMerchantLng() {
        return merchantLng;
    }

    /**
     * 商家经度
     */
    public void setMerchantLng(BigDecimal merchantLng) {
        this.merchantLng = merchantLng;
    }

    /**
     * 商家纬度
     */
    public BigDecimal getMerchantLat() {
        return merchantLat;
    }

    /**
     * 商家纬度
     */
    public void setMerchantLat(BigDecimal merchantLat) {
        this.merchantLat = merchantLat;
    }

    /**
     * 骑手经度
     */
    public BigDecimal getRiderLng() {
        return riderLng;
    }

    /**
     * 骑手经度
     */
    public void setRiderLng(BigDecimal riderLng) {
        this.riderLng = riderLng;
    }

    /**
     * 骑手纬度
     */
    public BigDecimal getRiderLat() {
        return riderLat;
    }

    /**
     * 骑手纬度
     */
    public void setRiderLat(BigDecimal riderLat) {
        this.riderLat = riderLat;
    }

    /**
     * 买家经度
     */
    public BigDecimal getBuyerLng() {
        return buyerLng;
    }

    /**
     * 买家经度
     */
    public void setBuyerLng(BigDecimal buyerLng) {
        this.buyerLng = buyerLng;
    }

    /**
     * 买家纬度
     */
    public BigDecimal getBuyerLat() {
        return buyerLat;
    }

    /**
     * 买家纬度
     */
    public void setBuyerLat(BigDecimal buyerLat) {
        this.buyerLat = buyerLat;
    }

    /**
     * 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        OrderDeliveryRoute other = (OrderDeliveryRoute) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getMerchantLng() == null ? other.getMerchantLng() == null : this.getMerchantLng().equals(other.getMerchantLng()))
            && (this.getMerchantLat() == null ? other.getMerchantLat() == null : this.getMerchantLat().equals(other.getMerchantLat()))
            && (this.getRiderLng() == null ? other.getRiderLng() == null : this.getRiderLng().equals(other.getRiderLng()))
            && (this.getRiderLat() == null ? other.getRiderLat() == null : this.getRiderLat().equals(other.getRiderLat()))
            && (this.getBuyerLng() == null ? other.getBuyerLng() == null : this.getBuyerLng().equals(other.getBuyerLng()))
            && (this.getBuyerLat() == null ? other.getBuyerLat() == null : this.getBuyerLat().equals(other.getBuyerLat()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getMerchantLng() == null) ? 0 : getMerchantLng().hashCode());
        result = prime * result + ((getMerchantLat() == null) ? 0 : getMerchantLat().hashCode());
        result = prime * result + ((getRiderLng() == null) ? 0 : getRiderLng().hashCode());
        result = prime * result + ((getRiderLat() == null) ? 0 : getRiderLat().hashCode());
        result = prime * result + ((getBuyerLng() == null) ? 0 : getBuyerLng().hashCode());
        result = prime * result + ((getBuyerLat() == null) ? 0 : getBuyerLat().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", orderId=").append(orderId);
        sb.append(", merchantLng=").append(merchantLng);
        sb.append(", merchantLat=").append(merchantLat);
        sb.append(", riderLng=").append(riderLng);
        sb.append(", riderLat=").append(riderLat);
        sb.append(", buyerLng=").append(buyerLng);
        sb.append(", buyerLat=").append(buyerLat);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}